package com.fjwt.gz.service.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fjwt.gz.db.dto.ActivityChannelDTO;
import com.fjwt.gz.db.entity.ActivityChannelEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fjwt.gz.db.vo.ActivityChannelVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 活动公众号渠道表 Mapper 接口
 * </p>
 *
 * @author shiyonghao
 * @since 2025-04-09
 */
public interface ActivityChannelMapper extends BaseMapper<ActivityChannelEntity> {


    /**
     * 查询渠道码
     */
    List<ActivityChannelVO> list(@Param("activityChannelDTO") ActivityChannelDTO activityChannelDTO);

    /**
     * 获取活动渠道列表
     * @param iPage
     * @param activityChannelDTO
     * @return
     */
    IPage<ActivityChannelVO> list(IPage iPage, @Param("activityChannelDTO") ActivityChannelDTO activityChannelDTO);

    /**
     * 获取自建渠道列表
     * @param iPage
     * @param activityChannelDTO
     * @return
     */
    IPage<ActivityChannelVO> getSelfBuildChannelList(IPage iPage, @Param("activityChannelDTO") ActivityChannelDTO activityChannelDTO);

    /**
     * 获取自建渠道列表
     * @param activityChannelDTO
     * @return
     */
    List<ActivityChannelVO> getSelfBuildChannelList(@Param("activityChannelDTO") ActivityChannelDTO activityChannelDTO);
}
